var connector = require("../src/runtime/jaba");

var a, b, c;

a = 10;

b = 20;

c = 30;

(function($service$){
var $input$ = {};

/* Init code */

/* Remote code */
var $script$ = 'for product in root.Products do if (product.UnitsInStock < 20) then g0:product.ProductName end end';
var $batch$ = $service$.execute($script$, $input$, function($result$) {

/* Local code */
console.log("(Almost) sold out products:");
$result$.getIteration("product").forEach(function(product){
console.log(product.getString("g0") + " should be ordered");
});

});
})(connector);

console.log(a, b, c);